/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartClock {
    static categoryCode = '010040012';

    static categoryName = '智能闹钟';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartClock.categoryCode;
    }

    get categoryName() {
        return SmartClock.categoryName;
    }

    getClock(params) {
        return command({
            method: 'getClock',
            methodId: 'pz93I4qZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode24H(params) {
        return command({
            method: 'getMode24H',
            methodId: 'pNnZFmTG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNightModeSwitch(params) {
        return command({
            method: 'getNightModeSwitch',
            methodId: 'pj7xj5D3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNightModeTime(params) {
        return command({
            method: 'getNightModeTime',
            methodId: 'pXZuHleV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getReminder(params) {
        return command({
            method: 'getReminder',
            methodId: 'p0cr8MSL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRingtone(params) {
        return command({
            method: 'getRingtone',
            methodId: 'p3delsKr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getScreenBrightness(params) {
        return command({
            method: 'getScreenBrightness',
            methodId: 'pBTQTKCS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pkpDnuzd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVolume(params) {
        return command({
            method: 'getVolume',
            methodId: 'pdN7PDFA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setClock(params) {
        return command({
            method: 'setClock',
            methodId: 'ppAXwLmM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode24H(params) {
        return command({
            method: 'setMode24H',
            methodId: 'ptRSCYHC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMute(params) {
        return command({
            method: 'setMute',
            methodId: 'peH3AFjn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setNightModeSwitch(params) {
        return command({
            method: 'setNightModeSwitch',
            methodId: 'phEqdc8U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setNightModeTime(params) {
        return command({
            method: 'setNightModeTime',
            methodId: 'pgh0v84w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setReminder(params) {
        return command({
            method: 'setReminder',
            methodId: 'pZgR0Vol',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRingtone(params) {
        return command({
            method: 'setRingtone',
            methodId: 'pGoxs3G5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setScreenBrightness(params) {
        return command({
            method: 'setScreenBrightness',
            methodId: 'pDrhJxBP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'p1vFcGdm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setVolume(params) {
        return command({
            method: 'setVolume',
            methodId: 'pUPQ5S9K',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartClock;
